package com.example.domain;

import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;



@Data
@NoArgsConstructor
public class User  {
    private Long id;
    //JAVA 属性名/变量名命名风格应遵循 小驼峰 ，userName
    private String userCode;
    private String username;
    private String password;
    private Integer sex;
    private Date birthday;
    private String phone;
    private String address;
    private Integer userRole;
    private Integer delFlag;
    private Date gmtCreate;
    private String modifyUserName;
    private Long modifyUserId;
    private Date gmt_modified;
    //提供getter/setter、toString 等方法
    private Date loginTime;


    public User(String userCode, String username, String password) {
        this.id = id;
        this.userCode = userCode;
        this.username = username;
        this.password = password;
        this.gmtCreate = gmtCreate;
    }
}

